/**
 * 图片上传API
 * data: {formData}
 * 返回图片服务器url
 */

import axios from 'axios'

const baseurl = '/giraffe/image'

export const uploadImage = (data) => axios.post(
  `${baseurl}/uploadImage`,
  data,
  {headers: {'Content-Type': 'multipart/form-data'}}
).then(
  (res) => {
    return res
  }
)
